﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CaseCategorys;

namespace LeadThing.AbpZeroTemplate.CaseCategorys.Dtos
{
    /// <summary>
    /// 矛盾纠纷案例菜单表编辑用Dto
    /// </summary>
    [AutoMap(typeof(CaseCategory))]
    public class CaseCategoryEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [DisplayName("菜单名称")]
        [Required]
        [MaxLength(100)]
        public string Title { get; set; }

        /// <summary>
        /// 父ID
        /// </summary>
        [DisplayName("父ID")]
        [Required]
        public int ParentID { get; set; }

        /// <summary>
        /// 所有子菜单
        /// </summary>
        [DisplayName("所有子菜单")]
        [MaxLength(500)]
        public string ClassList { get; set; }

        /// <summary>
        /// 层级
        /// </summary>
        [DisplayName("层级")]
        public int Layer { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        public int SortID { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [DisplayName("内容")]
        public string Content { get; set; }

    }
}
